﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NotAClue.ComponentModel.DataAnnotations
{
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
    public class RowHighlightingAttribute : Attribute
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="RowHighlightingAttribute"/> class.
        /// </summary>
        /// <param name="valueWhenTrue">The value when true.</param>
        /// <param name="cssClass">The CSS class.</param>
        public RowHighlightingAttribute(String valueWhenTrue, String cssClass)
        {
            ValueWhenTrue = valueWhenTrue;
            CssClass = cssClass;
        }

        /// <summary>
        /// Gets or sets the value when true.
        /// </summary>
        /// <value>The value when true.</value>
        public String ValueWhenTrue { get; set; }

        /// <summary>
        /// Gets or sets the CSS class.
        /// </summary>
        /// <value>The CSS class.</value>
        public String CssClass { get; set; }
    }
}
